<!DOCTYPE html>
<html lang="zh-CN">
  <head>
    <meta charset="UTF-8" />
    <link rel="icon" type="image/svg+xml" href="/vite.svg" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <meta name="description" content="RBAC权限控制系统 - 基于Vue 3和Element Plus的现代化权限管理平台" />
    <meta name="keywords" content="RBAC,权限管理,权限控制,Vue3,Element Plus" />
    <meta name="author" content="RBAC System" />
    
    <!-- 预加载字体 -->
    <link rel="preconnect" href="https://fonts.googleapis.com">
    <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
    
    <!-- 网站图标 -->
    <link rel="icon" type="image/svg+xml" href="/vite.svg">
    <link rel="manifest" href="/site.webmanifest">
    
    <title>RBAC权限控制系统</title>
    
    <style>
      /* 加载动画 */
      .loading-container {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        z-index: 9999;
        transition: opacity 0.3s ease-out;
      }
      
      .loading-logo {
        font-size: 2rem;
        color: white;
        margin-bottom: 2rem;
        font-weight: bold;
        text-shadow: 0 2px 4px rgba(0,0,0,0.3);
      }
      
      .loading-spinner {
        width: 50px;
        height: 50px;
        border: 3px solid rgba(255,255,255,0.3);
        border-top: 3px solid white;
        border-radius: 50%;
        animation: spin 1s linear infinite;
      }
      
      .loading-text {
        color: white;
        margin-top: 1rem;
        font-size: 1rem;
        opacity: 0.8;
      }
      
      @keyframes spin {
        0% { transform: rotate(0deg); }
        100% { transform: rotate(360deg); }
      }
      
      .loading-container.fade-out {
        opacity: 0;
      }
      
      /* 隐藏加载动画 */
      .loading-container.hidden {
        display: none;
      }
    </style>
  </head>
  <body>
    <!-- 加载动画 -->
    <div id="loading" class="loading-container">
      <div class="loading-logo">RBAC</div>
      <div class="loading-spinner"></div>
      <div class="loading-text">系统加载中...</div>
    </div>
    
    <!-- Vue应用挂载点 -->
    <div id="app"></div>
    
    <script type="module" src="/src/main.js"></script>
    
    <script>
      // 页面加载完成后隐藏加载动画
      window.addEventListener('load', function() {
        const loading = document.getElementById('loading');
        if (loading) {
          loading.classList.add('fade-out');
          setTimeout(() => {
            loading.classList.add('hidden');
          }, 300);
        }
      });
      
      // 如果页面加载时间过长，自动隐藏加载动画
      setTimeout(() => {
        const loading = document.getElementById('loading');
        if (loading && !loading.classList.contains('hidden')) {
          loading.classList.add('fade-out');
          setTimeout(() => {
            loading.classList.add('hidden');
          }, 300);
        }
      }, 5000);
    </script>
  </body>
</html> 